﻿@model ProductInfo
@{
    ProductInfo productInfo = Model;
    if (productInfo == null)
    {
        //如果外部传入值，就不需额外的调用开销
        var siteHelper = CoreServiceProvider.LocateService<INbSiteContextProvider>();
        productInfo = siteHelper.GetProductInfo();
    }
}
@productInfo.ProductName